QueryBusAdapter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 7
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A execute 0 3 1
1
import { Injectable } from '@nestjs/common';
2
import { QueryBus } from '@nestjs/cqrs';
3
import { IQueryBus } from 'src/Application/IQueryBus';
4
import { IQuery } from 'src/Application/IQuery';
5
6
@Injectable()
7
export class QueryBusAdapter implements IQueryBus {
8
  constructor(private readonly queryBus: QueryBus) {}
9
10
  public execute(query: IQuery): Promise<any> {
11
    return this.queryBus.execute(query);
12
  }
13
}
14